package com.javaee.service.impl;

import com.javaee.dao.StudentDao;
import com.javaee.entity.Student;
import com.javaee.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentDao studentdao;

    @Override
    public boolean add(Student student) {
        return studentdao.add(student)>0;
    }

    @Override
    public boolean bulkAdd(List<Student> students) {
        return studentdao.bulkAdd(students)>0;
    }

    @Override
    public boolean audit(Integer id) {
        return studentdao.audit(id)>0;
    }

    @Override
    public boolean bulkAudit(List<Integer> ids) {
        return studentdao.bulkAudit(ids)>0;
    }
}
